<template>
	<el-card class="form-container">
		<el-form :model="systemPostDetail" label-width="100px">
			<el-form-item label="岗位编号" prop="postCode">
				<el-input v-model="systemPostDetail.postCode" readonly></el-input>
			</el-form-item>
			<el-form-item label="岗位名称" prop="postName">
				<el-input v-model="systemPostDetail.postName" readonly></el-input>
			</el-form-item>
			<el-form-item label="岗位排序" prop="postSort">
				<el-input v-model="systemPostDetail.postSort" readonly></el-input>
			</el-form-item>
			<el-form-item label="岗位状态" prop="postStatus">
				<el-radio-group v-model="systemPostDetail.postStatus">
					<el-radio disabled :label="1">正常</el-radio>
					<el-radio disabled :label="2">停用</el-radio>
				</el-radio-group>
			</el-form-item>
			<el-form-item label="创建时间" prop="createTime">
				<el-input v-model="systemPostDetail.createTime" readonly></el-input>
			</el-form-item>
			<el-form-item label="修改时间" prop="updateTime">
				<el-input v-model="systemPostDetail.updateTime" readonly></el-input>
			</el-form-item>
			<el-form-item label="岗位描述" prop="postDesc">
				<el-input v-model="systemPostDetail.postDesc" readonly></el-input>
			</el-form-item>
			<el-form-item>
				<el-button @click="close">关闭</el-button>
			</el-form-item>
		</el-form>
	</el-card>
</template>

<script>
	import {
		findSystemPostDetail
	} from '@/api/admin/systemPost'
	export default {
		name: 'view-systemPost',
		data() {
			return {
				systemPostDetail: {}
			}
		},
		created() {
			this.view(this.$route.query.id)
		},
		methods: {
			view(val) {
				findSystemPostDetail(val).then(res => {
					console.log('查询返回结果', res)
					this.systemPostDetail = res.data.responseData
				})
			},
			close() {
				this.$router.go(-1)
			}
		}
	}
</script>

<style>
</style>
